VERSION 5.00
Begin VB.Form frmAsistencia 
   Caption         =   "Asistencias"
   ClientHeight    =   9585
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   11130
   BeginProperty Font 
      Name            =   "Eras Bold ITC"
      Size            =   11.25
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   9585
   ScaleWidth      =   11130
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command2 
      Caption         =   "Salir"
      Height          =   495
      Left            =   9120
      TabIndex        =   13
      Top             =   7200
      Width           =   1215
   End
   Begin VB.Timer Timer1 
      Interval        =   1000
      Left            =   840
      Top             =   3120
   End
   Begin VB.PictureBox Picture3 
      BackColor       =   &H00FFFFFF&
      Height          =   735
      Left            =   120
      ScaleHeight     =   675
      ScaleWidth      =   8835
      TabIndex        =   7
      Top             =   7080
      Width           =   8895
      Begin VB.CommandButton Command1 
         BackColor       =   &H00FFFFC0&
         Caption         =   "Permiso/Almuerzo"
         Height          =   510
         Index           =   3
         Left            =   6480
         Style           =   1  'Graphical
         TabIndex        =   11
         Top             =   120
         Width           =   2295
      End
      Begin VB.CommandButton Command1 
         BackColor       =   &H00C000C0&
         Caption         =   "Salida"
         Height          =   510
         Index           =   2
         Left            =   4440
         Style           =   1  'Graphical
         TabIndex        =   10
         Top             =   120
         Width           =   1815
      End
      Begin VB.CommandButton Command1 
         BackColor       =   &H0000FF00&
         Caption         =   "Retorno"
         Height          =   510
         Index           =   1
         Left            =   2400
         Style           =   1  'Graphical
         TabIndex        =   9
         Top             =   120
         Width           =   1815
      End
      Begin VB.CommandButton Command1 
         BackColor       =   &H0000C000&
         Caption         =   "Entrada"
         Height          =   510
         Index           =   0
         Left            =   360
         Style           =   1  'Graphical
         TabIndex        =   8
         Top             =   120
         Width           =   1815
      End
   End
   Begin VB.PictureBox Picture2 
      Height          =   3015
      Left            =   5520
      ScaleHeight     =   2955
      ScaleWidth      =   3435
      TabIndex        =   5
      Top             =   2040
      Width           =   3495
      Begin VB.Image Image1 
         BorderStyle     =   1  'Fixed Single
         Height          =   3015
         Left            =   0
         Stretch         =   -1  'True
         Top             =   0
         Width           =   3495
      End
   End
   Begin VB.PictureBox Picture1 
      Height          =   4455
      Left            =   2640
      Picture         =   "frmAsistencia.frx":0000
      ScaleHeight     =   4395
      ScaleWidth      =   2595
      TabIndex        =   2
      Top             =   1200
      Width           =   2655
   End
   Begin VB.TextBox Text1 
      Height          =   390
      Left            =   2640
      TabIndex        =   1
      Text            =   "Text1"
      Top             =   720
      Width           =   4695
   End
   Begin VB.Label SkinLabel2 
      Height          =   375
      Left            =   480
      TabIndex        =   0
      Top             =   720
      Width           =   1935
   End
   Begin VB.Label SkinLabel1 
      Height          =   255
      Left            =   480
      TabIndex        =   3
      Top             =   6240
      Width           =   2775
   End
   Begin VB.Label Nombres 
      Height          =   615
      Left            =   3480
      TabIndex        =   4
      Top             =   6240
      Width           =   5895
   End
   Begin VB.Label Fecha 
      Height          =   255
      Left            =   8040
      TabIndex        =   6
      Top             =   240
      Width           =   2775
   End
   Begin VB.Label Label1 
      Caption         =   "Label1"
      Height          =   495
      Left            =   720
      TabIndex        =   12
      Top             =   1800
      Width           =   495
   End
End
Attribute VB_Name = "frmAsistencia"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Sub Guardar(status)
    Dim t As DAO.Recordset
    Set t = Base.OpenRecordset("asistencias")
    t.AddNew
        t(0) = AutoNumero("codasistencia", "asistencias")
        t(1) = Label1.Caption
        t(2) = Date
        t(3) = Time
        t(4) = status
    t.Update
    MsgBox "Accion completada"
    
    
    
        

End Sub
Sub inicializar()
    Fecha.Caption = Now
    Text1.Text = ""
    Nombres.Caption = ""
    Image1.Picture = LoadPicture("")
    
End Sub

Private Sub Command1_Click(Index As Integer)
Guardar Command1(Index).Caption
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
    inicializar
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
    Dim t As DAO.Recordset
    Set t = Base.OpenRecordset("select *from empleados where captahuellas='" & Text1.Text & "'")
    Image1.Picture = LoadPicture("")
    Label1.Caption = 0
    Nombres.Caption = ""
    If Not t.EOF Then
        On Error Resume Next
        Label1.Caption = t(0)
        Nombres.Caption = t("nombre")
        Image1.Picture = LoadPicture(t("foto"))
    End If
    
    
    
End Sub

Private Sub Timer1_Timer()
Fecha.Caption = Now
End Sub
